<include file="layout/header" />

<script language="javascript">
    /*
     * 方法作用：单位名称文本框失去焦点后隐藏div
     * 输入：obj文本框对象
     * 输出：隐藏div
     */
    function hiddenList(obj){
        $(obj).hide();
    }

</script>
<!-- Right side column. Contains the navbar and content of the page -->
<aside class="right-side">
    <section class="content-header">
        <h1>
            发票详情
            <small>Invoice</small>
        </h1>
    </section>
    <section class="content" id="bbb">
        <div class="row">
            <div class="col-xs-12">
                <div class="box">
                    <div class="box-body table-responsive">
                        <!-- text input -->
                        <div class="form-group">
                            <label>客户名称:</label>
                            {$invoice.p_name}
                        </div>
                        <div class="form-group">
                            <label>开票日期:</label>
                            {$invoice.create_date}
                        </div>
                        <div class="form-group">
                            <label>票面金额:</label>
                            ￥{$invoice.i_price}
                        </div>
                        <div class="form-group">
                            <label>发票编号:</label>
                            {$invoice.i_no}
                        </div>
                        <div class="form-group">
                            <label>产品清单</label>
                            <table class="table table-bordered table-hover text-left">
                                <thead>
                                    <tr>
                                        <th class="text-center">序号</th>
                                        <th class="text-center">规格</th>
                                        <th class="text-center">数量</th>
                                        <th class="text-center">单价</th>
                                        <th class="text-center">金额</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <volist name="details" id="detail">
                                        <tr>
                                            <td class="text-center">{$i}</td>
                                            <td>{$detail.c_guige}</td>
                                            <td>{$detail.c_number}</td>
                                            <td>{$detail.c_price}</td>
                                            <td>{$detail.c_total}</td>
                                        </tr>
                                    </volist>
                                </tbody>
                            </table>

                        </div>
                        <div>
                                <button class="btn btn-primary btn-sm" onclick="javascript:window.history.go(-1)">返回</button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>
</aside><!-- /.right-side -->
<include file="layout/footer" />
